<% content_for :page_head do %>
  <h1>创建项目</h1>
<% end %>

<% form_for @project do |f| %>
  <%= f.error_messages %>

<p>
  <label for="name" class="label">项目名:</label><br />
  <%= f.text_field :name %> 
</p>

<p>
  <label for="chs_name" class="label">客户中文名:</label><br />
  <%= f.text_field :chs_name %>
</p>

<p>
  <label for="key" class="label">KEY:</label><br />
  <%= f.text_field :key %>
</p>

<p>
  <label for="description" class="label">描述:</label><br />
  <%= f.text_area :description %>
</p>

<p>
  <label for="start_time" class="label">起始时间:</label><br />
  <%= f.date_select(:start_time) %>
</p>

<p>
  <label for="should_be_finish_time" class="label">量产时间:</label><br />
  <%= f.date_select(:should_be_finish_time) %>
</p>

<p>
  <label for="user_id" id="refer">项目负责人:</label><br />
  <%= f.select(:user_id, User.get_roles_users("pdm","developer").collect {|p| [ p.name, p.id ] }, { :include_blank => false }) %>
</p>

<p>
  <%= f.submit "创建项目" %>
</p>
<% end %>